package com.bajiao.service.classify.impl;

import com.bajiao.entity.classify.Classify;
import com.bajiao.mapper.classify.ClassifyMapper;
import com.bajiao.service.classify.ClassifyService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 商品分类表
 * @Author: FanJq
 * @Date:   2025-01-13
 * @Version: V1.0
 */
@Service
public class ClassifyServiceImpl extends ServiceImpl<ClassifyMapper, Classify> implements ClassifyService {

    /**
     * @Description
     * 根据店铺id获取
     * @date 2025/1/13 11:26
     * @author FanJq
     * @param storeId
     * @return {@link List< Classify>}
    */
    @Override
    public List<Classify> getByStoreId(String storeId) {
        List<Classify> classifyList = this.lambdaQuery().eq(Classify::getStoreId, storeId).orderByAsc(Classify::getSeq).list();
        return classifyList;
    }
}
